package com.yfqy.admin.domain.mapper;

import com.yfqy.admin.domain.dto.brand.BrandDetail;
import com.yfqy.admin.domain.entity.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Brand record);

    int insertSelective(Brand record);

    Brand selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Brand record);

    int updateByPrimaryKey(Brand record);

    List<BrandDetail> selectListByNameAndIsShow(@Param("name") String name, @Param("show") Byte show);

    Brand selectOneByName(@Param("name") String name);
}